package com.wms.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wms.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("sys_table_config")
@ApiModel(value = "SysTableConfig", description = "前端页面表格配置实体")
public class SysTableConfig {

    @Excel(name = "前端页面表格配置id", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.NUMERIC, prompt = "前端页面表格配置id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "默认表头名称", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.STRING, prompt = "默认表头名称")
    @ApiModelProperty("默认表头名称")
    @TableField("label")
    private String label;

    @Excel(name = "表头字段", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.STRING, prompt = "表头字段")
    @ApiModelProperty("表头字段")
    @TableField("prop")
    private String prop;

    @Excel(name = "页面请求URL", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.STRING, prompt = "页面请求URL")
    @ApiModelProperty(value = "页面请求URL",required = true)
    @TableField("url")
    private String url;

    @Excel(name = "排序", type = Excel.Type.EXPORT, cellType = Excel.ColumnType.NUMERIC, prompt = "排序")
    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

}
